/**
 * 配置参考: https://cli.vuejs.org/zh/config/
 */
module.exports = {
  baseUrl: process.env.NODE_ENV === 'production' ? './' : '/',
  productionSourceMap: false,
  // outputDir: 'vueDemo',
  devServer: {
    open: true,
    port: 9004,
    proxy: {
      '/api': {
        target: 'http://172.16.157.124:2000',
        secure: false,
        ws: true,
        changeOrigin: true,
        pathRewrite: { '^/api': '' }
      },
      '/admin': {
        target: 'https://www.easy-mock.com/mock/5cce946a3d417120b6186d75/data_demo',
        secure: false,
        ws: true,
        changeOrigin: true,
        pathRewrite: { '^/admin': '' }
      }
    },
    overlay: {
      errors: true,
      warnings: true
    }
  }
}
